@inherits RenderViewPage
@using Umbraco.Cms.Web;
@{
  var currentPg = DynamicModel;
  var home = DynamicModel.AncestorsOrSelf.First("NodeTypeAlias == @0", "HomePage");
  string crumText = string.Empty;
  while(currentPg != null && currentPg.Id  != home.Id)
  {
   if(currentPg.umbracoNaviHide == "False")
   {
	
		if(currentPg.Id == DynamicModel.Id)
	  {
		  crumText = string.Format("<li>{0}</li>", currentPg.Name) + crumText;
	  }
	else
	  {
		crumText = string.Format("<li><a href=\"{0}\">{1}</a></li>", currentPg.Url, currentPg.Name) + crumText;
	   }
   }
   currentPg = currentPg.Parent;
  }
  //crumText = string.Format("<li><a href=\"{0}\">{1}</a></li>", currentPg.Url, currentPg.Name) + crumText;
}
<ul id="breadcrumbs" >@Html.Raw(crumText)</ul>
